<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const xhr = new XMLHttpRequest();
        console.log(xhr);
        xhr.open('get','https://api.adicw.cn/comic/getComicTopThree',true)
        xhr.send();
        xhr.onreadystatechange = function(){
            if (xhr.readyState == 4 && xhr.status == 200) {
                console.log(xhr.response)//输出响应数据
                let reslut = JSON.parse(xhr.response)
                console.log(reslut);
            }
        }


    </script>
    
</body>
</html>